#ifndef __KAPP_ASTRAL_DISPLAY_H_
#define __KAPP_ASTRAL_DISPLAY_H_

typedef struct Display
{
    int twidth;
    int thight;
    int tcurrx;
    int tcurry;
    int tstart;
    int byte_size;
    enum {
        INITIALIZED,
        CONNECTED,
        DISCONNECTED
    } status;
    unsigned* buff;
} *Display;

const unsigned char *get_front();


void create_display(Display d, char* name, unsigned* buff,  int byte_size);
void set_display_attr(Display d, int width, int heigt, int reserve_lines);

int switch_display(Display d);


void display_char(Display d, char c, unsigned color_fg, unsigned color_bg);

int draw_bitmap(Display d, const char *name, int x, int y);

#endif//__KAPP_ASTRAL_DISPLAY_H_